package com.result.demo.global.exception;

import com.result.demo.global.enums.ResultCode;
import lombok.Data;

/**
 * 全局异常处理
 * @author chao.z
 */
@Data
public class BizException extends RuntimeException{


    private ResultCode resultCode;



    public BizException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }


    @Override
    public Throwable fillInStackTrace() {
        return this;
    }
}
